//
//  ViewController.m
//  oc封装网络请求工具类
//
//  Created by KIMI on 16/9/21.
//  Copyright © 2016年 KIMI. All rights reserved.
//

#import "ViewController.h"
#import "WBNetworkTools.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self loadData];

}
- (void)loadData{
    
    NSString *urlStr = @"http://www.weather.com.cn/data/sk/101010100.html";
    [[WBNetworkTools sharedNetWorkTooles] requestWithType:GET andURLStr:urlStr andParams:nil andCallBack:^(id response, NSError *error) {
        
        if(error){
            NSLog(@"网络异常%@",error);
            return;
        }
            NSLog(@"%@",response);
    }];
}


@end
